package com.itheima.design.mode.static_proxy;

public class PlayGame {

    public static void main(String[] args) {
       //创建土豪(使用者)、苍老师(目标对象)、tony(代理)三个对象
        TuHao tuHao = new TuHao(1.7f);
        TeacherCang teacherCang = new TeacherCang();
        Tony tony = new Tony();
        //tony对苍老师进行代理
        tony.setGirl(teacherCang);
        tuHao.dating(tony);

    }
}
